<h1>Create Page</h1>
<br/>

<%= error_messages_for :page %>

<% form_for @page, :url => { :controller => 'pages', :action => 'createpage' } do |f| %>

  <h2>Select Category:</h2>
  <select name="page[categoryName]">
  	<%= options_from_collection_for_select(@categories, 
                                       :categoryName, 
                                       :categoryName) %>
	
	</select>
	
	<br/><br/>
	
	<h2>Enter Page Name:</h2>
  
  <p>
    <%= f.text_field :pageName %>
  </p>
  
  <h2>Enter Page Type</h2>
  
  
  
  
  <br/><br/>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>


